package com.google.android.gms.internal;

import java.io.IOException;

public final class zzfmc extends zzflm<zzfmc> {
    private byte[] zzpxb = null;
    private Integer zzpxe = null;
    private byte[] zzpxf = null;

    public zzfmc() {
        this.zzpvl = null;
        this.zzpnr = -1;
    }

    public final /* synthetic */ zzfls zza(zzflj zzflj) throws IOException {
        while (true) {
            int zzcxx = zzflj.zzcxx();
            if (zzcxx == 0) {
                return this;
            }
            if (zzcxx == 8) {
                this.zzpxe = Integer.valueOf(zzflj.zzcya());
            } else if (zzcxx == 18) {
                this.zzpxf = zzflj.readBytes();
            } else if (zzcxx == 26) {
                this.zzpxb = zzflj.readBytes();
            } else if (!super.zza(zzflj, zzcxx)) {
                return this;
            }
        }
    }

    public final void zza(zzflk zzflk) throws IOException {
        if (this.zzpxe != null) {
            zzflk.zzad(1, this.zzpxe.intValue());
        }
        if (this.zzpxf != null) {
            zzflk.zzc(2, this.zzpxf);
        }
        if (this.zzpxb != null) {
            zzflk.zzc(3, this.zzpxb);
        }
        super.zza(zzflk);
    }

    /* access modifiers changed from: protected */
    public final int zzq() {
        int zzq = super.zzq();
        if (this.zzpxe != null) {
            zzq += zzflk.zzag(1, this.zzpxe.intValue());
        }
        if (this.zzpxf != null) {
            zzq += zzflk.zzd(2, this.zzpxf);
        }
        return this.zzpxb != null ? zzq + zzflk.zzd(3, this.zzpxb) : zzq;
    }
}
